﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="GuestLog.ascx.cs" Inherits="controls_admin_GuestLog" %>
<asp:HiddenField ID="hdfCheck" runat="server" />
<div class="box">
    <!-- box / title -->
    <div class="title">
        <h5 id="txtTitle" runat="server">
            Lịch sử khách truy cập</h5>
    </div>
    <div id="divMessage" runat="server">
    </div>
    <!-- end box / title -->
    <div class="table">
        <table id="table-3">
            <thead>
                <tr>
                    <th class="stt">
                        STT
                    </th>
                    <th>
                        IP
                    </th>
                    <th>
                        Link
                    </th>
                    <th>
                        Lần đầu truy cập
                    </th>
                    <th>
                        Lần cuối truy cập
                    </th>
                    <th>
                        Số lần truy cập
                    </th>
                    <th class="selected last">
                        <input type="checkbox" class="checkall" />
                    </th>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="rptData" runat="server">
                    <ItemTemplate>
                        <tr>
                            <td align="center">
                                <%#Container.ItemIndex+1%>
                            </td>
                            <td align="center">
                                <%# Eval("IP_ADDRESS")%>
                            </td>
                            <td align="center">
                                <%# Eval("URL")%>
                            </td>
                            <td align="center">
                                <%# Eval("FIRST_ACCESS_DATE","{0:dd/MM/yyyy}")%>
                            </td>
                            <td align="center">
                                <%# Eval("LAST_ACCESS_DATE", "{0:dd/MM/yyyy}")%>
                            </td>
                            <td align="center">
                                <%#Eval("TOTAL_ACCESS")%>
                            </td>
                            <td align="center" class="last" style="vertical-align: middle">
                                <input id="chkBox" type="checkbox" value='<%#Eval("GUEST_ID")%>' class="item" runat="server" />
                                <asp:HiddenField runat="server" ID="hdfURL" Value='<%#Eval("URL_ID")%>' />
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
        <div class="pagination pagination-left last">
            <div class="pagerContainer" id="pagerContainer" runat="server">
            </div>
        </div>
        <div class="action">
            <div class="button">
                <asp:Button runat="server" ID="btnDel" OnClick="btnDel_Click" Text="Xóa" />
            </div>
        </div>
    </div>
</div>
